package member.order.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

import java.util.Date;

@TableMeta(name="o_month_wages_detail",description="月度工资明细表")
public class MonthWagesDetail extends Model {
    @LinkTableMeta(name="month_wages_oid",table= MonthWages.class,description="所属月度工资")
    private MonthWages monthWages;

    @FieldMeta(name="type",type= FieldType.STRING,length = 20,description="类型",dictOption = "order:订单,recharge:充值")
    private String type;
    public final static String Type_Order="order";
    public final static String Type_Recharge="recharge";
    @FieldMeta(name="busi_oid",type= FieldType.STRING,length = 50,description="业务主键")
    private String busiOid;
    @FieldMeta(name="order_no",type= FieldType.STRING,length = 50,description="订单编号")
    private String orderNo;
    @FieldMeta(name="account_date",type= FieldType.DATE,description="订单账期")
    private Date accountDate;
    @FieldMeta(name = "pay_amount",type = FieldType.DOUBLE,defaultValue = "0",description = "付款金额")
    private Double payAmount;
    @FieldMeta(name = "wages_amount",type = FieldType.DOUBLE,defaultValue = "0",description = "提成金额")
    private Double wagesAmount;
    @FieldMeta(name = "reward_amount",type = FieldType.DOUBLE,defaultValue = "0",description = "奖励金额")
    private Double rewardAmount;

    public Double getRewardAmount() {
        return rewardAmount;
    }

    public void setRewardAmount(Double rewardAmount) {
        this.rewardAmount = rewardAmount;
    }

    public MonthWages getMonthWages() {
        return monthWages;
    }

    public void setMonthWages(MonthWages monthWages) {
        this.monthWages = monthWages;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBusiOid() {
        return busiOid;
    }

    public void setBusiOid(String busiOid) {
        this.busiOid = busiOid;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Date getAccountDate() {
        return accountDate;
    }

    public void setAccountDate(Date accountDate) {
        this.accountDate = accountDate;
    }

    public Double getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(Double payAmount) {
        this.payAmount = payAmount;
    }

    public Double getWagesAmount() {
        return wagesAmount;
    }

    public void setWagesAmount(Double wagesAmount) {
        this.wagesAmount = wagesAmount;
    }
}
